<!DOCTYPE html>
<html lang="en" xmlns:http="http://www.w3.org/1999/xhtml" xmlns: xmlns:>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"
    />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>福山</title>
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../css/element/elemet-ui.css"/>
    <!--<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">-->
    <link rel="stylesheet" type="text/css" href="../css/swiper/swiper-4.1.6.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/rem.css" />
    <link rel="stylesheet" href="../js/map/DrawingManager_min.css">
    <link rel="stylesheet" href="../css/repeat.css">
    <style>
        #app {
            width: 100vw;
            height: 100vh;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
        }

        .pubHead {
            width: 100%;
            height: 80px;
            padding-left: 40px;
            box-sizing: border-box;
            background-color: #011a42;
        }

        .log {
            float: left;
            width: 40px;
            height: 42px;
            margin-top: 19px;
            background: url('../assets/image/logo.png') no-repeat;
        }

        .logtitle {
            float: left;
            margin-left: 10px;
            height: 80px;
            line-height: 80px;
            width: auto;
            font-size: 22px;
            color: #79afff;
        }

        .tabUl {
            float: left;
            margin-left: 285px;
            overflow: hidden;
        }

        .tabUl li {
            float: left;
            padding: 0px 20px;
            height: 80px;
            line-height: 80px;
            color: #79afff;
            font-size: 18px;
            cursor: pointer;
        }

        .tabUl li.li_active {
            height: 77px;
            font-size: 18px;
            line-height: 80px;
            border-bottom: 3px solid #0070ff;
        }

        .border {
            border: 1px solid #ebeef5;
            border-bottom: none;
        }

        .main {
            flex: 1;
            background: #002759;
            width: 100%;
            padding: 0px 28px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
        }

        .top {
            width: 100%;
            height: 70px;
        }

        .top>span {
            height: 70px;
            line-height: 70px;
            display: inline-block;
            float: left;
            margin-left: 10px;
            font-size: 18px;
            color: #79afff;
        }

        .top .circle {
            width: 8px;
            height: 8px;
            background-color: #0070ff;
            margin-top: 30px;
            margin-left: 15px;
        }

        .top .endspan {
            color: #0068ed;
        }

        .main_body {
            width: 100%;
            background-color: #fff;
            flex: 1;
            margin-bottom: 20px;
            border-radius: 6px;
        }

        .title_top {
            height: 80px;
            line-height: 80px;
            border-bottom: 1px solid #e9e9e9;
        }

        .title_top_l {
            float: left;
            display: inline-block;
            width: 160px;
            height: 100%;
            line-height: 80px;
            font-size: 20px;
            text-align: center;
        }

        .title_top_r {
            float: left;
            width: auto;
            height: 100%;
            overflow: hidden;
            box-sizing: border-box;
            padding-top: 20px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div id="pubHead" class="pubHead">
            <div class="log"></div>
            <div class="logtitle">福山公安数据治理系统</div>
            <ul class="tabUl">
                <li :class="{'li_active':activeIndex === index}" v-for="(item, index) in menuList" :key="index" @click="routerGo(item)">{{item.name}}
                </li>
                <!-- <li :class="{'li_active':activeIndex === 1}">数据源注册</li>
            <li>数据采集任务管理</li>
            <li>数据采集监控</li>
            <li>录入工具</li>
            <li>资源目录</li> -->
            </ul>
        </div>
        <div class="main">
            <div class="top">
                <span class="circle"></span>
                <span>智能作战系统</span>
                <span>></span>
                <span>联防联控</span>
                <span>></span>
                <span class="endspan">重点人员管控</span>
                <el-button type="primary" size="mini" @click="gobackhome" style="position:absolute;right:5rem;margin-top:1rem">
                    返回
                </el-button>
            </div>
            <div class="main_body">
                <div class="title_top">
                    <span class="title_top_l"> 人员列表</span>
                    <div class="title_top_r">
                        <el-form :inline="true" :model="form" class="demo-form-inline">
                            <el-form-item label="">
                                <el-select v-model="form.find" @change="search" placeholder="类型">
                                    <el-option v-for="item in typeList" :label="item.value" :value="item.key" :key="item.key"></el-option>
                                </el-select>
                            </el-form-item>
                            <el-form-item label="">
                                <el-input v-model="form.Keywords" placeholder="请输入关键词" @keyup.enter.native="search"></el-input>
                            </el-form-item>
                            <el-form-item>
                                <el-button type="primary" @click="search">搜索</el-button>
                            </el-form-item>
                        </el-form>
                    </div>
                </div>
                <el-row :gutter="20" style="width: 96%;margin: 20px auto">
                    <div class="border">
                        <el-table class="blueHead" :data="data" style="width: 100%">
                            <el-table-column prop="id" label="序号" width="80">
                            </el-table-column>
                            <el-table-column prop="pcName" label="姓名" width="180">
                            </el-table-column>
                            <el-table-column prop="pcIdCard" label="身份证号">
                            </el-table-column>
                            <el-table-column prop="pcEthnic" label="民族">
                            </el-table-column>
                            <el-table-column prop="pcAddress" label="现住址">
                            </el-table-column>
                            <el-table-column prop="pcCarNumber" label="车牌号码">
                            </el-table-column>
                            <el-table-column prop="pcMac" label="MAC">
                            </el-table-column>
                            <el-table-column prop="pcImsi" label="imsi">
                            </el-table-column>
                            <el-table-column prop="pcQq" label="QQ">
                            </el-table-column>
                            <el-table-column prop="pcWeChat" label="微信">
                            </el-table-column>
                            <el-table-column prop="lastModifyTime" label="更新时间">
                            </el-table-column>
                        </el-table>
                    </div>
                    <div style="height:5rem;display: flex; flex-direction: row;flex-wrap: nowrap; justify-content: flex-end;padding-right: 2rem;align-items: center">
                        <div style="font-size:0.7rem;font-family:MicrosoftYaHei;color:rgba(121,120,131,1)">
                            共 {{total}} 条，每页显示 {{ pagesize }} 条
                        </div>
                        <el-pagination @current-change="handleCurrentChange" :current-page.sync="current" :page-size="pagesize" layout="prev, pager, next, jumper"
                            :total="total">
                        </el-pagination>
                    </div>
                </el-row>
            </div>
        </div>


    </div>
    <!-- 引入组件库 -->
    <script type="text/javascript" src="../js/vue/vue.js"></script>
    <!-- <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script> -->
    <script type="text/javascript" src="../js/element/element.js"></script>
    <script type="text/javascript" src="../js/swiper/swiper-4.1.6.min.js"></script>
    <script type="text/javascript" src="../js/urls.js"></script>
    <script src="../js/axios.min.js"></script>
    <script type="text/javascript" src="../js/utils.js"></script>



    <script type="text/javascript">
        var vm;
        vm = new Vue({
            el: '#app',
            data: {
                menuList: [
                    {
                        name: '数据源注册',
                        path: '/'
                    },
                    {
                        name: '数据采集任务管理',
                        path: '/'
                    },
                    {
                        name: '数据采集监控',
                        path: '/'
                    },
                    {
                        name: '录入工具',
                        path: '/'
                    },
                    {
                        name: '资源目录',
                        path: '/'
                    }
                ],
                activeIndex: 0,
                showTable1: 1,
                current: 1,
                pagesize: 10,
                total: 0,
                list: [],
                form: {
                    find: '',
                    Keywords: ''
                },
                data: [],
                typeList: []
            },
            created: function () {
                this.getType()
                this.getList()
            },
            mounted: function () { },
            methods: {
                gobackhome(){
                    window.location='./bigHome.html'
                },
                routerGo(item) {
                },
                test() {
                    let self = this
                    self.$NotifyUtil({
                        title: 'dsadn'
                    })
                },
                handleCurrentChange(page) {
                    this.current = page
                    this.getList()
                },
                search() {
                    this.current = 1
                    this.getList()
                },
                getType() {
                    let option = {
                        method: 'GET',
                        url: 'fs/task/findType',
                        data: {}
                    }
                    let self = this
                    this.$HttpUtil(option, res => {
                        if (res.code === 0) {
                            console.log(res)
                            this.typeList = res.data
                            this.typeList.unshift({
                                key: 0,
                                value: '全部'
                            })
                        } else {
                            this.$NotifyUtil({
                                title: '失败',
                                message: res.msg,
                                type: 'error'
                            })
                        }
                    })
                },
                getList() {
                    let data = {
                        pageNo: this.current,
                        pageSize: this.pagesize,
                        Keywords: this.form.Keywords
                    }
                    if (this.form.find) {
                        data.find = this.form.find
                    }
                    let option = {
                        method: 'GET',
                        url: 'fs/task/findPeople',
                        data: data
                    }
                    let self = this
                    this.$HttpUtil(option, res => {
                        if (res.code === 0) {
                            self.data = res.data.list
                            self.total = res.data.totalCount
                        } else {
                            this.$NotifyUtil({
                                title: '失败',
                                message: res.msg,
                                type: 'error'
                            })
                        }
                    })
                },
                ces() {
                    // var ws = new WebSocket('192.168.0.172:8888/user/queue/notifications')
                    // ws.onopen = function(evt) {
                    //   console.log('Connection open ...')
                    //   ws.send('Hello WebSockets!')
                    // }
                    // ws.onmessage = function(evt) {
                    //   console.log('Received Message: ' + evt.data)
                    //   ws.close()
                    // }
                    // ws.onclose = function(evt) {
                    //   console.log('Connection closed.')
                    // }
                }
            }
        })


    </script>
</body>

</html>